.PHONY: init
init:
	@docker run --privileged --rm tonistiigi/binfmt --install all

.PHONY: build
build:
	@export BUILD_COMMAND=build && docker compose run --rm hikvision

.PHONY: rebuild
rebuild:
	@export BUILD_COMMAND=rebuild && docker compose run --rm hikvision

.PHONY: run
run:
	@export BUILD_COMMAND=None && docker compose run --rm hikvision

.PHONY: clean
clean:
	@export BUILD_COMMAND=clean && docker compose run --rm hikvision